<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:nsdext="http://www.fpml.org/FpML-5/recordkeeping/nsd-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<xsl:output omit-xml-declaration="yes" indent="yes" />
	<xsl:template match="MAIN">
		<nonpublicExecutionReport xmlns="http://www.fpml.org/FpML-5/recordkeeping" xmlns:nsdext="http://www.fpml.org/FpML-5/recordkeeping/nsd-ext"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" fpmlVersion="5-4"
			xsi:schemaLocation="http://www.fpml.org/FpML-5/recordkeeping fpml-recordkeeping-merged-schema.xsd http://www.fpml.org/FpML-5/recordkeeping/nsd-ext nsd-ext-merged-schema.xsd">
			<header>
				<messageId messageIdScheme='http://repository.nsd.ru/coding-scheme/messageid(nsdrus)'>
					<xsl:value-of select="HEADER_MESSAGEID" />
				</messageId>
				<sentBy>
					<xsl:value-of select="HEADER_SENTBY" />
				</sentBy>
				<sendTo>
					<xsl:value-of select="HEADER_SENDTO" />
				</sendTo>
				<creationTimestamp>
					<xsl:value-of select="HEADER_CREATIONTIMESTAMP" />
				</creationTimestamp>
				<implementationSpecification>
					<version>
						<xsl:value-of select="HEADER_IMPLEMENTATIONSPECIFICATION_VERSION" />
					</version>
				</implementationSpecification>
			</header>
			<isCorrection>
				<xsl:value-of select="ISCORRECTION" />
			</isCorrection>
			<correlationId correlationIdScheme='http://repository.nsd.ru/coding-scheme/correlationId(nsdrus)'>
				<xsl:value-of select="CORRELATIONID" />
			</correlationId>
			<asOfDate>
				<xsl:value-of select="ASOFDATE" />
			</asOfDate>
			<trade>
				<tradeHeader>
					<partyTradeIdentifier>
						<partyReference>
							<xsl:attribute name="href">
    <xsl:value-of select="TRADE_TRADEHEADER_PARTYTRADEIDENTIFIER_PARTYREFERENCE_HREF" />
</xsl:attribute>
						</partyReference>
						<tradeId>
							<xsl:value-of select="TRADE_TRADEHEADER_PARTYTRADEIDENTIFIER_TRADEID" />
						</tradeId>
						<linkId linkIdScheme='http://repository.nsd.ru/coding-scheme/linkid(nsdrus)'>
							<xsl:value-of select="TRADE_TRADEHEADER_PARTYTRADEIDENTIFIER_LINKID" />
						</linkId>
					</partyTradeIdentifier>
					<partyTradeInformation>
						<partyReference>
							<xsl:attribute name="href">
    <xsl:value-of select="TRADE_TRADEHEADER_PARTYTRADEINFORMATION_PARTYREFERENCE_HREF" />
</xsl:attribute>
						</partyReference>
						<reportingRegime>
							<name>
								<xsl:value-of select="TRADE_TRADEHEADER_PARTYTRADEINFORMATION_REPORTINGREGIME_NAME" />
							</name>
						</reportingRegime>
					</partyTradeInformation>
					<tradeDate>
						<xsl:value-of select="TRADE_TRADEHEADER_TRADEDATE" />
					</tradeDate>
				</tradeHeader>
				<equitySimpleTransaction>
					<productType>
						<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_PRODUCTTYPE" />
					</productType>
					<buyerPartyReference>
						<xsl:attribute name="href">
    <xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_BUYERPARTYREFERENCE_HREF" />
</xsl:attribute>
					</buyerPartyReference>
					<sellerPartyReference>
						<xsl:attribute name="href">
    <xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_SELLERPARTYREFERENCE_HREF" />
</xsl:attribute>
					</sellerPartyReference>
					<numberOfUnits>
						<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_NUMBEROFUNITS" />
					</numberOfUnits>
					<unitPrice>
						<currency>
							<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_UNITPRICE_CURRENCY" />
						</currency>
						<amount>
							<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_UNITPRICE_AMOUNT" />
						</amount>
					</unitPrice>
					<equity>
						<instrumentId instrumentIdScheme='https://www.nsd.ru/ru/info/good/sec_ru/'>
							<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_EQUITY_INSTRUMENTID" />
						</instrumentId>
						<description>
							<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_EQUITY_DESCRIPTION" />
						</description>
					</equity>
					<term>
						<periodMultiplier>
							<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_TERM_PERIODMULTIPLIER" />
						</periodMultiplier>
						<period>
							<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_TERM_PERIOD" />
						</period>
					</term>
					<deliveryMethod>
						<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_DELIVERYMETHOD" />
					</deliveryMethod>
					<settlementDate>
						<adjustableDate>
							<unadjustedDate>
								<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_SETTLEMENTDATE_ADJUSTABLEDATE_UNADJUSTEDDATE" />
							</unadjustedDate>
							<dateAdjustments>
								<businessDayConvention>
									<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_SETTLEMENTDATE_ADJUSTABLEDATE_DATEADJUSTMENTS_BUSINESSDAYCONVENTION" />
								</businessDayConvention>
								<businessCenters>
									<businessCenter>
										<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_SETTLEMENTDATE_ADJUSTABLEDATE_DATEADJUSTMENTS_BUSINESSCENTERS_BUSINESSCENTER" />
									</businessCenter>
								</businessCenters>
							</dateAdjustments>
							<adjustedDate>
								<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_SETTLEMENTDATE_ADJUSTABLEDATE_ADJUSTEDDATE" />
							</adjustedDate>
						</adjustableDate>
					</settlementDate>
					<deliveryDate>
						<adjustableDate>
							<unadjustedDate>
								<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_DELIVERYDATE_ADJUSTABLEDATE_UNADJUSTEDDATE" />
							</unadjustedDate>
							<dateAdjustments>
								<businessDayConvention>
									<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_DELIVERYDATE_ADJUSTABLEDATE_DATEADJUSTMENTS_BUSINESSDAYCONVENTION" />
								</businessDayConvention>
								<businessCenters>
									<businessCenter>
										<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_DELIVERYDATE_ADJUSTABLEDATE_DATEADJUSTMENTS_BUSINESSCENTERS_BUSINESSCENTER" />
									</businessCenter>
								</businessCenters>
							</dateAdjustments>
							<adjustedDate>
								<xsl:value-of select="TRADE_EQUITYSIMPLETRANSACTION_DELIVERYDATE_ADJUSTABLEDATE_ADJUSTEDDATE" />
							</adjustedDate>
						</adjustableDate>
					</deliveryDate>
				</equitySimpleTransaction>
				<documentation>
					<attachment>
						<name>
							<xsl:value-of select="TRADE_DOCUMENTATION_ATTACHMENT_NAME" />
						</name>
					</attachment>
				</documentation>
				<nsdSpecificTradeFields>
					<reconciliationType>
						<xsl:value-of select="TRADE_NSDSPECIFICTRADEFIELDS_RECONCILIATIONTYPE" />
					</reconciliationType>
					<clearSettlementType>
						<xsl:value-of select="TRADE_NSDSPECIFICTRADEFIELDS_CLEARSETTLEMENTTYPE" />
					</clearSettlementType>
					<clearSettlementMethod>
						<xsl:value-of select="TRADE_NSDSPECIFICTRADEFIELDS_CLEARSETTLEMENTMETHOD" />
					</clearSettlementMethod>
					<regulatoryStatus>
						<xsl:value-of select="TRADE_NSDSPECIFICTRADEFIELDS_REGULATORYSTATUS" />
					</regulatoryStatus>
				</nsdSpecificTradeFields>
			</trade>

			<xsl:for-each select="PARTY">

				<party>
					<xsl:attribute name="id">
    <xsl:value-of select="PARTY_ID" />
</xsl:attribute>
					<partyId>
						<xsl:value-of select="PARTY_PARTYID" />
					</partyId>
					<partyName>
						<xsl:value-of select="PARTY_PARTYNAME" />
					</partyName>
				</party>
			</xsl:for-each>
		</nonpublicExecutionReport>
	</xsl:template>
</xsl:stylesheet>